package com.dsh.controller;

import com.dsh.common.response.ResultObject;
import com.dsh.model.UserLogin;
import com.dsh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("user")
public class UserController {
    @Autowired
    UserService userService;

    @RequestMapping("login")
    public ResultObject<Map> userLogin(@RequestBody UserLogin userLogin){
        return userService.userLogin(userLogin);
    }
}
